﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using SolutionModel;

namespace SolutionDAL
{
    [TestFixture]
    public class TestClass
    {
        [Test]
        public void DeleteRolesByUser()
        {
            //using (PurviewDBEntities db =new PurviewDBEntities())
            //{
            //    var q= db.T_AdminUser.Where(o => "1,2,3,4".Split(',').Contains(o.UserID));

            //    Console.WriteLine(((System.Data.Objects.ObjectQuery)q).ToTraceString());
            //}
            ////Expression<Func<T_UsersInRoles, bool>> e =  o =>  true;
            ////var a= e.Add(p=>"1,2,3".Split(new char[]{','},StringSplitOptions.RemoveEmptyEntries).Contains(p.RoleID));
            ////var q = etdb.T_UsersInRoles.Where(e);

            ////return ((System.Data.Objects.ObjectQuery)q).ToTraceString();
            Console.WriteLine("dfsdfsdf");
        }
    }
}
